import { Navigate } from "react-router-dom"
import { lazy } from "react"
const Renwu = lazy(() => import("../view/renwu"))
const Fujian = lazy(() => import("../view/fujian"))
const Tongji = lazy(() => import("../view/tongji"))
const Guidang = lazy(() => import("../view/guidang"))
const Layouts = lazy(() => import("../view/layouts"))
const DragSwap = lazy(() => import("../view/cart"))

const routes = [
    {
        path: "/layouts", element: <Layouts />,
        children: [
            { path: "/layouts/renwu", element: <Renwu /> },
            { path: "/layouts/fujian", element: <Fujian /> },
            { path: "/layouts/guidang", element: <Guidang /> },
        ]
    },
    { path: "/cart", element: <DragSwap /> }
]

export default routes
